<template>
  <div class="login-error">
    <img
      src="@/assets/images/error/404.png"
      alt=""
    >
    <el-button
      size="small"
      @click="handleHomeBack"
    >
      返回首页
    </el-button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import router from '@/router';
export default defineComponent({
  name: '',
  setup() {
    function handleHomeBack() {
      router.replace('/');
    }
    return {
      handleHomeBack
    };
  }
});
</script>

<style lang="scss">
.login-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 24px;
  img {
    margin-top: 5%;
    width: 400px;
  }
  button {
    margin-top: 40px;
    cursor: pointer;
  }
}
</style>